<%--
  Created by IntelliJ IDEA.
  User: YR
  Date: 2018/5/17
  Time: 16:19
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>

<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>

<c:set var="ctx" value="<%=request.getContextPath() %>"></c:set>

<link rel="stylesheet" href="<%=request.getContextPath() %>/static/vendor/bootstrap/css/bootstrap.min.css">
<link rel="stylesheet" href="${ctx }/static/vendor/font-awesome-4.7.0/css/font-awesome.min.css">

<script src="${ctx}/static/vendor/jquery.min.js"></script>
<script src="${ctx}/static/vendor/layer-v3.1.1/layer/layer.js"></script>
<script src="${ctx}/static/vendor/jquery.cookie.js"></script>
<script src="${ctx}/static/vendor/bootstrap/js/bootstrap.min.js"></script>
<script src="${ctx}/static/vendor/nice-validator-1.1.4/dist/jquery.validator.min.js?local=zh-CN"></script>

<style>
    /* nice-validator验证不通过时，调整提示文字的位置 */
    .n-bottom {
        margin-bottom: 6px;
    }

    .msg .n-bottom {
        vertical-align: top;
    }

    textarea {
        resize: vertical;
    }

    .required {
        color: red;
        font-style: normal;
        margin-right: 2px;
    }
</style>

<script>
    // nice-validator设置
    $(function () {
        $.validator.setTheme('bootstrap', {
            validClass: 'has-success',
            invalidClass: 'has-error',
            bindClassTo: '.form-group',
            formClass: 'n-default n-bootstrap',
            msgClass: 'n-bottom'
        });
    })
</script>
<%--注意，引入该页面时放入页面的head标签中--%>